package com.browsesoft.baseadapter;

import java.io.InputStream;
import java.io.OutputStream;

public interface BlobEntity {

	/**
	 * 关闭对象
	 * 
	 * @throws java.lang.Exception
	 */
	public abstract void save() throws java.lang.Exception;

	public abstract void delete() throws java.lang.Exception;

	/**
	 * 给blob赋值
	 * 
	 * @param fileBody
	 */
	public abstract void saveOrUpdate(byte[] fileBody);

	public abstract OutputStream getOutputStream() throws Exception;

	public abstract InputStream getInputStream() throws Exception;

	/**
	 * 把内容转换成串
	 * 
	 * @return
	 */
	public abstract String getContent();

	public abstract String getID();

	public abstract void close();

	/*
	 * 
	 */
	public abstract long getLength();

}